package com.xyy.saas.payment.service.impl;

import com.xyy.saas.payment.dao.mapper.BankCardBindLogMapper;
import com.xyy.saas.payment.dao.model.BankCardBindLog;
import com.xyy.saas.payment.service.BankCardBindLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 签约绑卡日志表(BankCardBindLog)表服务实现类
 *
 * @author chujian
 * @since 2023-06-08 15:48:02
 */
@Slf4j
@Service
public class BankCardBindLogServiceImpl implements BankCardBindLogService {
    @Resource
    private BankCardBindLogMapper bankCardBindLogMapper;

    /**
     * 查询数据
     *
     * @param bankCardBindLog 实例对象
     * @return 实例对象
     */
    @Override
    public List<BankCardBindLog> query(BankCardBindLog bankCardBindLog) {
        return bankCardBindLogMapper.query(bankCardBindLog);
    }

    /**
     * 新增数据
     *
     * @param bankCardBindLog 实例对象
     * @return 实例对象
     */
    @Override
    public BankCardBindLog insert(BankCardBindLog bankCardBindLog) {
        this.bankCardBindLogMapper.insert(bankCardBindLog);
        return bankCardBindLog;
    }

}
